package com.yanqu.road.server.timer.wingroom;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.server.manger.wingroom.WingRoomMgr;
import com.yanqu.road.utils.executor.GeneralTask;

/**
 * @author ：zfr
 * @date ：2022/3/9 11:23
 */
public class WingRoomTask extends GeneralTask {
    @Override
    public void doRun() {
        for (GamePlayer player : GamePlayerMgr.getAllOnlinePlayer()) {
            if (player != null) {
                WingRoomMgr.refreshEvent(player);
            }
        }
    }
}
